<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');

/**
 * get theme
 * 
 * @return string theme
 */
if (!function_exists('theme_web')) {

    function theme_web() {
        return config_item('theme_web');
    }

}
/**
 * get link static
 * 
 * @param string $uri 
 * @return string full link
 */
if (!function_exists('static_url')) {

    function static_url($uri = NULL) {
        return base_url($uri);
    }

}

// link static_base
if (!function_exists('static_base')) {

    function static_base() {
        return static_url() . 'static/' . theme_web() . '/';
    }

}

// static to folder frontend
if(!function_exists('static_frontend'))
{

    function static_frontend()
    {
        return static_base() . 'frontend/';
    }

}
?>